package com.zx.chatroom.po;

import javax.persistence.*;


/**
 * UserDept entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="s_user_dept"
    
)

public class UserDept  implements java.io.Serializable {


    // Fields    

     private UserDeptId id;


    // Constructors

    /** default constructor */
    public UserDept() {
    }

    
    /** full constructor */
    public UserDept(UserDeptId id) {
        this.id = id;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="userId", column=@Column(name="USERID", nullable=false, length=64) ), 
        @AttributeOverride(name="dept", column=@Column(name="DEPT", nullable=false, length=64) ) } )

    public UserDeptId getId() {
        return this.id;
    }
    
    public void setId(UserDeptId id) {
        this.id = id;
    }
   








}